from tkinter import *

root=Tk()

# tickinterval=5表示间隔是5, resolution=5表示精度是5, length=200表示200像素
Scale(root,from_=0,to=42,tickinterval=5,resolution=5,length=200).pack()
Scale(root,from_=0,to=200,orient=HORIZONTAL,tickinterval=10,length=600).pack()



mainloop()
